import {http} from '@/utils/http';

/** 登录 */
export const loginApi = (data: any) => http({
	url: '/system/auth/login',
	data: data,
	method: 'POST'
});

/* 获取当前用户登录信息 */
export const getUserInfo = () => http({
	url: '/system/user/profile/get'
});

/* 获取用户权限 */
export const getPermission = () => http({
	url: '/system/auth/get-permission-info'
});

/* 退出登录 */
export const logoutApi = () => http({
	url: '/system/auth/logout',
	method: 'POST'
});